@dialog-bg: rgba(0, 64, 255, 0.05);
@content-bg: rgba(255, 255, 255, 0.4);
@height: 96px;

.container {
  background-color: @dialog-bg;
  width: 100%;
  height: 100vh;
  padding: 24px;
  margin: 0;

  .menu-top {
    display: flex;
    flex-direction: column;
    align-items: left;
    padding-bottom: 34px;
    margin-bottom: 8px;
    img{
      padding:31px 0 0;
      font-weight: 400;
    }

    .bold {
      margin-top: 16px;
      margin-bottom: 12px;
      font-size: 16px;
      font-family: PangMenZhengDao;
      font-weight: 400;
    }
  }

  .fixed-header {
    background: #FFF;
    border-radius: 32px;
    padding: 16px;
    display: flex;
    gap: 8px;
    align-items: center;

    .photo {
      width: 48px;
      height: 48px;
      border-radius: 16px;
    }

    .header-left {
      display: flex;
      align-items: center;
    }

    .logo {
      width: 48px;
      height: 48px;
      margin-right: 20px;
    }

    .header-title {
      gap: 12px;

      .title {
        font-family: Alimama FangYuanTi VF;
        font-weight: 700;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #0F1324;
      }

      .text {
        font-family: Alimama FangYuanTi VF;
        font-weight: 400;
        font-size: 11px;
        line-height: 100%;
        letter-spacing: 0%;
        color: rgba(15, 19, 36, 0.5);

      }
    }


    .header-menu {
      flex-grow: 1;
      text-align: center;
      padding: 0 32px;

      .el-menu-demo {
        width: 100%;
        gap: 8px;
        justify-content: center;
        .menu-item {
          width: 240px;
          font-weight: 400;
          font-size: 16px;
        }
      }
    }

    .header-right {
      display: flex;
      align-items: center;
    }

    .el-icon {
      margin-right: 8px;
      cursor: pointer;
      background: #FFFFFF;
      gap: 10px;
      border-radius: 23px;
      padding: 12px;

    }
  }

  .main-content {
    // margin-top: 60px;
    /* 与头部高度一致 */
    padding: 0px;
    margin-bottom: 8px;
    // height: calc(100vh - @height);
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 48px;
  }
}

:deep(.el-menu) {
  border: none !important;
  text-decoration: none;
  --el-menu-hover-bg-color: transparent;
  max-height: calc(100% - 117px);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  &::-webkit-scrollbar {
      display: none;
  }

  .el-menu-item,
  .el-sub-menu__title {
    justify-content: space-between;
    padding: 24px;
    height: 64px;
    color: rgba(41, 46, 61, 0.5);
    border-bottom: none !important;
    text-decoration: none;
    margin-bottom: 8px;
  }

  .el-sub-menu.is-active .el-sub-menu__title {
    color: #FFFFFF !important;
    background-color: #0040FF !important;
    border-radius: 24px;
    font-weight: 700 !important;
  }

  .el-sub-menu .el-menu {
    margin-left: 16px;
    border-left: 1px solid rgba(41, 46, 61, 0.1) !important;

    .el-menu-item,
    .el-menu-item:hover {
      --el-menu-sub-item-height: 64px;
      background: rgba(41, 46, 61, 0.03) !important;
      margin-left: 16px;
      border-radius: 16px;
      padding-left: 24px;
    }

    .el-menu-item.is-active {
      color: #0040FF !important;
      background-color: rgba(0, 64, 255, 0.05) !important;
      font-weight: 700 !important;
    }
  }
}

.el-header {
  --el-header-height: 80px;
}

.el-main {
  --el-main-padding: 16px 0 0 0;
}

.triangle {
  position: absolute;
  bottom: -18px;
  /* 三角形距离菜单项底部的距离 */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 32px solid transparent;
  /* 宽度的一半 */
  border-right: 32px solid transparent;
  /* 宽度的一半 */
  border-bottom: 12px solid @content-bg;
  /* 三角形高度和颜色 */
}

/* 自定义悬停样式 */
.el-menu-item:hover,
:deep(.el-sub-menu__title:hover) {
  color: #292E3D !important;
  background-color: transparent !important;
}

/* 自定义选中样式 */
.el-menu-item.is-active {
  color: #0040FF !important;
  background-color: #FFFFFF !important;
  border-radius: 24px;
  font-weight: 700 !important;
}

@media (max-width: 1500px) {
  .container .fixed-header {
    gap: 16px;

    .logo {
      width: 32px;
      height: 32px;
    }

    .header-title .title {
      font-size: 14px;
    }

    .header-menu {
      padding: 0;

      .el-menu-demo {
        gap: 16px;

        .menu-item {
          width: 120px;
          font-size: 14px;
        }
      }
    }
  }
}
